<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "mobile".
 *
 * @property integer $id
 * @property string $mobile
 * @property string $wechat
 * @property string $city
 * @property string $name
 * @property integer $type
 * @property integer $souce
 */
class Mobile extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mobile';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['type', 'souce'], 'integer'],
            [['mobile'], 'string', 'max' => 11],
            [['wechat', 'city'], 'string', 'max' => 30],
            [['name'], 'string', 'max' => 60],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'mobile' => 'Mobile',
            'wechat' => 'Wechat',
            'city' => 'City',
            'name' => 'Name',
            'type' => 'Type',
            'souce' => 'Souce',
        ];
    }
}

